//
//  DatabaseConnection.h

//

#import <Foundation/Foundation.h>

@class AppDelegate;


@interface DatabaseConnection : NSObject

#pragma mark - CMC structure

+ (void)writeListItems:(NSMutableArray*)list toEntity:(NSString*)entityName withPrimaryKey:(NSString*)primaryKey;

+ (NSMutableArray*)readItemsFromEntity:(NSString*)entityName withConditionString:(NSString*)condition sortWithKey:(NSString*)key ascending:(BOOL)ascending;
+ (NSMutableArray*)readItemsFromEntity:(NSString*)entityName withConditionString:(NSString*)condition sortWithKey:(NSString*)key ascending:(BOOL)ascending nmberOfRowLimit:(NSNumber*)rowLimit;
@end
